<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Grid布局示例</title>
        <style>
          #justify-align-items {
            display: grid;
            grid-template-columns: 200px 100px;
            grid-template-rows: 50px 50px;
            gap: 5px;
            background-color: lightgray;
            justify-items: center;
            align-items: end;
          }
      
          #justify-align-items div {
            width: 100%;
            height: 100%;
          }
        </style>
      </head>
      
      <body>
        <h2>5. justify-items 和 align-items 属性</h2>
        <div id="justify-align-items">
          <div>1</div>
          <div>2</div>
          <div>3</div>
          <div>4</div>
        </div>
      </body>
      
      </html>
